<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
<<<<<<< HEAD
=======

Route::group(['middleware' => 'login'],function(){


>>>>>>> 85f852dc8b29098ae5083b38cf0549cc1eed9a1d
//后台
Route::get('/admin/index','Admin\IndexController@index');
Route::get('/admin/user/add','Admin\UserController@add');
Route::post('/admin/user/insert','Admin\UserController@insert');
Route::get('/admin/user/index','Admin\UserController@index');
Route::post('/admin/user/changename','Admin\UserController@changename');
Route::get('/admin/user/edit/{id}','Admin\UserController@edit');
Route::get('/admin/user/delete/{id}','Admin\UserController@delete');
Route::post('/admin/user/update/{id}','Admin\UserController@update');

});

//注册
Route::match(['get','post'],'/admin/register','Admin\RegisterController@register');
// Route::post('/admin/register','Admin\RegisterController@register');
//登录
Route::match(['get','post'],'/admin/login','Admin\LoginController@login');

//退出
Route::get('/admin/logout','Admin\LoginController@logout');

//验证码
Route::get('kit/captcha/{tmp}', 'KitController@captcha');





//手机报价
Route::get('/products',function(){
	return view('home.products');
});



//主页
Route::get('/homepage','Stage\OppoController@homepage');

<<<<<<< HEAD
//登录页面
Route::get('/register','Stage\OppoController@register');

//注册
Route::get('/login','Stage\OppoController@login');
=======
//注册页面
Route::get('/register','Home\LoginController@register');

//登录
Route::get('/login','Home\LoginController@login');

//colorOS页面
Route::get('/coloros','Stage\OppoController@coloros');

//r9s页面
Route::get('/r9s','Stage\OppoController@r9s');
>>>>>>> 85f852dc8b29098ae5083b38cf0549cc1eed9a1d

//服务页面
Route::get('/service','Stage\OppoController@service');

//社区页面
Route::get('/community','Stage\OppoController@community');

//商城页面
Route::get('/index','Stage\OppoController@index');

//体验店页面
Route::get('/shops','Stage\OppoController@shops');

//产品页面
Route::get('/products','Stage\OppoController@products');

<<<<<<< HEAD
//双12
Route::get('/two','Stage\ListController@two');

//购物车
Route::get('/car','Stage\ListController@car');

//r9s页面
Route::get('/r9s','Stage\ListController@r9s');
//金色
Route::get('/r9s/golden','Stage\DetailsController@golden');
//黑色
Route::get('/r9s/black','Stage\DetailsController@black');
//粉色
Route::get('/r9s/pink','Stage\DetailsController@pink');
=======


>>>>>>> 85f852dc8b29098ae5083b38cf0549cc1eed9a1d




<<<<<<< HEAD

Auth::routes();

Route::get('/home', 'HomeController@index');

Auth::routes();

Route::get('/home', 'HomeController@index');

Auth::routes();

Route::get('/home', 'HomeController@index');

Auth::routes();

Route::get('/home', 'HomeController@index');

=======
>>>>>>> 85f852dc8b29098ae5083b38cf0549cc1eed9a1d
Auth::routes();

Route::get('/home', 'HomeController@index');
